package com.bwstudio.demo.consumer.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.bwstudio.demo.consumer.service.EchoService;

@RestController
public class EchoController {

	@Autowired
	EchoService echoService;

	@GetMapping("/echo/app-name-by-feign")
	public String echoAppNameByFeign() {
		return echoService.echoAppNameByFeign();
	}
	
	@GetMapping("/echo/app-name-by-rest")
	public String echoAppName() {
		return echoService.echoAppNameByRestTemplate();
	}
	


}
